package com.qingchi.web.controller;

import com.qingchi.web.model.RO.LoginRO;
import com.qingchi.web.service.login.LoginService;
import com.socialuni.api.feignAPI.insystem.SocialuniQingchiAPI;
import com.socialuni.api.model.RO.devAccount.DevAccountRO;
import com.socialuni.social.api.model.ResultRO;
import com.socialuni.social.model.model.QO.user.OAuthUserInfoQO;
import com.socialuni.social.model.model.QO.user.SocialPhoneNumQO;
import com.socialuni.social.model.model.QO.user.SocialProviderLoginQO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

@RestController
@RequestMapping("dev")
public class DevAccountController {
    @Resource
    private SocialuniQingchiAPI socialuniQingchiAPI;

    //三方渠道登录，qq、wx、社交联盟，兼容各平台，h5、app、mp
    @PostMapping("queryDevAccount")
    public ResultRO<DevAccountRO> queryDevAccount(@RequestBody @Valid OAuthUserInfoQO queryQO) {
        return socialuniQingchiAPI.queryDevAccount(queryQO);
    }
}
